package com.gloaba.common.redis.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface RedissonDistributedLock {
    String key() default "";

    int leaseTime() default 20;

    boolean autoRelease() default true;

    String errorDesc() default "系统正常处理，请稍后提交";

    int waitTime() default 1;

    TimeUnit timeUnit() default TimeUnit.SECONDS;
}
